d7878aa320b34550511fb2c25da58e5b154711ea,oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/name/ReadOnlyNamespaceRegistry.java,ReadOnlyNamespaceRegistry,getURIs,#,79

Before Change


    @Nonnull
    public String[] getURIs() throws RepositoryException {
        try {
            Tree root = getReadTree();
            Map<String, String> map = Namespaces.getNamespaceMap(root);
            String[] uris = map.values().toArray(new String[map.size()]);
            return uris;
        } catch (RuntimeException e) {

After Change


    @Nonnull
    public String[] getURIs() throws RepositoryException {
        try {
            return Namespaces.getNamespaceURIs(getReadTree());
        } catch (RuntimeException e) {
            throw new RepositoryException(
                    "Failed to retrieve registered namespace URIs", e);